<?php

namespace addons\official;

use app\common\library\Menu;
use think\Addons;
use think\Log;
use app\admin\model\official\OfficialConfig as ConfigModel;

/**
 * 插件
 */
class Official extends Addons
{

    /**
     * 插件安装方法
     * @return bool
     */
    public function install()
    {
        $menu = [
            0 =>
                [
                    'name'    => 'official',
                    'title'   => '企业网站管理',
                    'icon'    => 'fa fa-bars',
                    'remark'  => '',
                    'sublist' =>
                        [
                            0 =>
                                [
                                    'name'    => 'official/config',
                                    'title'   => '配置项',
                                    'remark'  => '',
                                    'icon'    => 'fa fa-cogs',
                                    'sublist' =>
                                        [
                                            0 =>
                                                [
                                                    'name'    => 'official/config/index',
                                                    'title'   => '查看',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            1 =>
                                                [
                                                    'name'    => 'official/config/import',
                                                    'title'   => 'Import',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            2 =>
                                                [
                                                    'name'    => 'official/config/add',
                                                    'title'   => '添加',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            3 =>
                                                [
                                                    'name'    => 'official/config/edit',
                                                    'title'   => '编辑',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            4 =>
                                                [
                                                    'name'    => 'official/config/del',
                                                    'title'   => '删除',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                        ],
                                ],
                            1 =>
                                [
                                    'name'    => 'official/official_banners',
                                    'title'   => '轮播图管理',
                                    'remark'  => '',
                                    'icon'    => 'fa fa-image',
                                    'sublist' =>
                                        [
                                            0 =>
                                                [
                                                    'name'    => 'official/official_banners/index',
                                                    'title'   => '查看',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            1 =>
                                                [
                                                    'name'    => 'official/official_banners/import',
                                                    'title'   => 'Import',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            2 =>
                                                [
                                                    'name'    => 'official/official_banners/add',
                                                    'title'   => '添加',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            3 =>
                                                [
                                                    'name'    => 'official/official_banners/edit',
                                                    'title'   => '编辑',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            4 =>
                                                [
                                                    'name'    => 'official/official_banners/del',
                                                    'title'   => '删除',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            5 =>
                                                [
                                                    'name'    => 'official/official_banners/destroy',
                                                    'title'   => '真实删除',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            6 =>
                                                [
                                                    'name'    => 'official/official_banners/recyclebin',
                                                    'title'   => '回收站',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            7 =>
                                                [
                                                    'name'    => 'official/official_banners/restore',
                                                    'title'   => '还原',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            8 =>
                                                [
                                                    'name'    => 'official/official_banners/multi',
                                                    'title'   => '批量更新',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                        ],
                                ],
                            2 =>
                                [
                                    'name'    => 'official/official_rule',
                                    'title'   => '列表规则',
                                    'remark'  => '',
                                    'icon'    => 'fa fa-cog',
                                    'sublist' =>
                                        [
                                            0 =>
                                                [
                                                    'name'    => 'official/official_rule/index',
                                                    'title'   => '查看',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            1 =>
                                                [
                                                    'name'    => 'official/official_rule/import',
                                                    'title'   => 'Import',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            2 =>
                                                [
                                                    'name'    => 'official/official_rule/add',
                                                    'title'   => '添加',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            3 =>
                                                [
                                                    'name'    => 'official/official_rule/edit',
                                                    'title'   => '编辑',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            4 =>
                                                [
                                                    'name'    => 'official/official_rule/del',
                                                    'title'   => '删除',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            5 =>
                                                [
                                                    'name'    => 'official/official_rule/multi',
                                                    'title'   => '批量更新',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                        ],
                                ],
                            3 =>
                                [

                                    'name'    => 'official/official_category',
                                    'title'   => '栏目管理',
                                    'remark'  => '',
                                    'icon'    => 'fa fa-align-justify',
                                    'sublist' =>
                                        [
                                            0 =>
                                                [
                                                    'name'    => 'official/official_category/import',
                                                    'title'   => 'Import',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            1 =>
                                                [
                                                    'name'    => 'official/official_category/index',
                                                    'title'   => '查看',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            2 =>
                                                [
                                                    'name'    => 'official/official_category/recyclebin',
                                                    'title'   => '回收站',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            3 =>
                                                [
                                                    'name'    => 'official/official_category/add',
                                                    'title'   => '添加',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            4 =>
                                                [
                                                    'name'    => 'official/official_category/edit',
                                                    'title'   => '编辑',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            5 =>
                                                [
                                                    'name'    => 'official/official_category/del',
                                                    'title'   => '删除',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            6 =>
                                                [
                                                    'name'    => 'official/official_category/destroy',
                                                    'title'   => '真实删除',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            7 =>
                                                [
                                                    'name'    => 'official/official_category/restore',
                                                    'title'   => '还原',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            8 =>
                                                [
                                                    'name'    => 'official/official_category/multi',
                                                    'title'   => '批量更新',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                            9 =>
                                                [
                                                    'name'    => 'official/official_category/config',
                                                    'title'   => '设置首页默认栏目',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-circle-o',
                                                    'sublist' =>
                                                        [
                                                        ],
                                                ],
                                        ],
                                ],
                            4 =>
                                [

                                    'name'    => 'official/rule_list',
                                    'title'   => '管理员规则权限',
                                    'remark'  => '',
                                    'icon'    => 'fa fa-user-secret',
                                    'sublist' =>
                                        [

                                            0 =>
                                                [
                                                    'name'    => 'official/official_list_product',
                                                    'title'   => '产品列表',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-window-restore',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_product/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            1 =>
                                                                [
                                                                    'name'    => 'official/official_list_product/add',
                                                                    'title'   => '添加',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            2 =>
                                                                [
                                                                    'name'    => 'official/official_list_product/edit',
                                                                    'title'   => '编辑',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            3 =>
                                                                [
                                                                    'name'    => 'official/official_list_product/del',
                                                                    'title'   => '删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            4 =>
                                                                [
                                                                    'name'    => 'official/official_list_product/multi',
                                                                    'title'   => '批量更新',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            5 =>
                                                                [
                                                                    'name'    => 'official/official_list_product/destroy',
                                                                    'title'   => '真实删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                        ],
                                                ],
                                            1 =>
                                                [
                                                    'name'    => 'official/official_list_video',
                                                    'title'   => '视频列表',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-window-restore',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_video/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            1 =>
                                                                [
                                                                    'name'    => 'official/official_list_video/add',
                                                                    'title'   => '添加',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            2 =>
                                                                [
                                                                    'name'    => 'official/official_list_video/edit',
                                                                    'title'   => '编辑',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            3 =>
                                                                [
                                                                    'name'    => 'official/official_list_video/del',
                                                                    'title'   => '删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            4 =>
                                                                [
                                                                    'name'    => 'official/official_list_video/multi',
                                                                    'title'   => '批量更新',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            5 =>
                                                                [
                                                                    'name'    => 'official/official_list_video/destroy',
                                                                    'title'   => '真实删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                        ],
                                                ],
                                            2 =>
                                                [
                                                    'name'    => 'official/official_list_journalism',
                                                    'title'   => '新闻列表',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-window-restore',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_journalism/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            1 =>
                                                                [
                                                                    'name'    => 'official/official_list_journalism/add',
                                                                    'title'   => '添加',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            2 =>
                                                                [
                                                                    'name'    => 'official/official_list_journalism/edit',
                                                                    'title'   => '编辑',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            3 =>
                                                                [
                                                                    'name'    => 'official/official_list_journalism/del',
                                                                    'title'   => '删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            4 =>
                                                                [
                                                                    'name'    => 'official/official_list_journalism/multi',
                                                                    'title'   => '批量更新',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            5 =>
                                                                [
                                                                    'name'    => 'official/official_list_journalism/destroy',
                                                                    'title'   => '真实删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                        ],
                                                ],
                                            3 =>
                                                [
                                                    'name'    => 'official/official_list_case_show',
                                                    'title'   => '客户案例独有',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-window-restore',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_case_show/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            1 =>
                                                                [
                                                                    'name'    => 'official/official_list_case_show/add',
                                                                    'title'   => '添加',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            2 =>
                                                                [
                                                                    'name'    => 'official/official_list_case_show/edit',
                                                                    'title'   => '编辑',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            3 =>
                                                                [
                                                                    'name'    => 'official/official_list_case_show/del',
                                                                    'title'   => '删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            4 =>
                                                                [
                                                                    'name'    => 'official/official_list_case_show/multi',
                                                                    'title'   => '批量更新',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            5 =>
                                                                [
                                                                    'name'    => 'official/official_list_case_show/destroy',
                                                                    'title'   => '真实删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                        ],
                                                ],
                                            4 =>
                                                [
                                                    'name'    => 'official/official_list_download',
                                                    'title'   => '下载列表',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-window-restore',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_download/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            1 =>
                                                                [
                                                                    'name'    => 'official/official_list_download/add',
                                                                    'title'   => '添加',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            2 =>
                                                                [
                                                                    'name'    => 'official/official_list_download/edit',
                                                                    'title'   => '编辑',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            3 =>
                                                                [
                                                                    'name'    => 'official/official_list_download/del',
                                                                    'title'   => '删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            4 =>
                                                                [
                                                                    'name'    => 'official/official_list_download/multi',
                                                                    'title'   => '批量更新',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            5 =>
                                                                [
                                                                    'name'    => 'official/official_list_download/destroy',
                                                                    'title'   => '真实删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                        ],
                                                ],
                                            5 =>
                                                [
                                                    'name'    => 'official/official_list_table',
                                                    'title'   => '招聘规则(表格)',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-window-restore',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_table/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            1 =>
                                                                [
                                                                    'name'    => 'official/official_list_table/add',
                                                                    'title'   => '添加',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            2 =>
                                                                [
                                                                    'name'    => 'official/official_list_table/edit',
                                                                    'title'   => '编辑',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            3 =>
                                                                [
                                                                    'name'    => 'official/official_list_table/del',
                                                                    'title'   => '删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            4 =>
                                                                [
                                                                    'name'    => 'official/official_list_table/multi',
                                                                    'title'   => '批量更新',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            5 =>
                                                                [
                                                                    'name'    => 'official/official_list_table/destroy',
                                                                    'title'   => '真实删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                        ],
                                                ],
                                            6 =>
                                                [
                                                    'name'    => 'official/official_list_our_clients',
                                                    'title'   => '我们的客户',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-window-restore',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_our_clients/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            1 =>
                                                                [
                                                                    'name'    => 'official/official_list_our_clients/add',
                                                                    'title'   => '添加',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            2 =>
                                                                [
                                                                    'name'    => 'official/official_list_our_clients/edit',
                                                                    'title'   => '编辑',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            3 =>
                                                                [
                                                                    'name'    => 'official/official_list_our_clients/del',
                                                                    'title'   => '删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            4 =>
                                                                [
                                                                    'name'    => 'official/official_list_our_clients/multi',
                                                                    'title'   => '批量更新',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            5 =>
                                                                [
                                                                    'name'    => 'official/official_list_our_clients/destroy',
                                                                    'title'   => '真实删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                        ],
                                                ],
                                            7 =>
                                                [
                                                    'name'    => 'official/official_list_online_message',
                                                    'title'   => '在线留言(无列表页)',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-window-restore',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_online_message/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            1 =>
                                                                [
                                                                    'name'    => 'official/official_list_online_message/add',
                                                                    'title'   => '添加',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            2 =>
                                                                [
                                                                    'name'    => 'official/official_list_online_message/edit',
                                                                    'title'   => '编辑',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            3 =>
                                                                [
                                                                    'name'    => 'official/official_list_online_message/del',
                                                                    'title'   => '删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            4 =>
                                                                [
                                                                    'name'    => 'official/official_list_online_message/multi',
                                                                    'title'   => '批量更新',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                            5 =>
                                                                [
                                                                    'name'    => 'official/official_list_online_message/destroy',
                                                                    'title'   => '真实删除',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-circle-o',
                                                                    'sublist' =>
                                                                        [
                                                                        ],
                                                                ],
                                                        ],
                                                ],
                                        ],
                                ],
                            5 =>
                                [

                                    'name'    => 'category_data_list',
                                    'title'   => '内容管理',
                                    'remark'  => '',
                                    'icon'    => 'fa fa-list',
                                    'sublist' =>
                                        [

                                            10 =>
                                                [
                                                    'name'    => 'about',
                                                    'title'   => '关于我们',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-address-book',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_video/index/ids/5',
                                                                    'title'   => '宣传视频',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-backward',
                                                                    'sublist' =>
                                                                        [
                                                                            0 =>
                                                                                [
                                                                                    'name'    => 'official/official_list_video/index/ids/5/index',
                                                                                    'title'   => '查看',
                                                                                    'remark'  => '',
                                                                                    'icon'    => 'fa fa-backward',
                                                                                    'sublist' => [],
                                                                                ],
                                                                        ],
                                                                ],
                                                        ],
                                                ],
                                            20 =>
                                                [
                                                    'name'    => 'news/information',
                                                    'title'   => '新闻资讯',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-list-alt',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_journalism/index/ids/8',
                                                                    'title'   => '行业动态',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-flag-checkered',
                                                                    'sublist' =>
                                                                        [
                                                                            0 =>
                                                                                [
                                                                                    'name'    => 'official/official_list_journalism/index/ids/8/index',
                                                                                    'title'   => '查看',
                                                                                    'remark'  => '',
                                                                                    'icon'    => 'fa fa-flag-checkered',
                                                                                    'sublist' => [],
                                                                                ],
                                                                        ],
                                                                ],
                                                            1 =>
                                                                [
                                                                    'name'    => 'official/official_list_journalism/index/ids/7',
                                                                    'title'   => '公司新闻',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-list',
                                                                    'sublist' =>
                                                                        [
                                                                            0 =>
                                                                                [
                                                                                    'name'    => 'official/official_list_journalism/index/ids/7/index',
                                                                                    'title'   => '查看',
                                                                                    'remark'  => '',
                                                                                    'icon'    => 'fa fa-list',
                                                                                    'sublist' => [],
                                                                                ],
                                                                        ],
                                                                ],
                                                            2 =>
                                                                [
                                                                    'name'    => 'official/official_list_journalism/index/ids/19',
                                                                    'title'   => '服务范围',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-binoculars',
                                                                    'sublist' =>
                                                                        [
                                                                            0 =>
                                                                                [
                                                                                    'name'    => 'official/official_list_journalism/index/ids/19/index',
                                                                                    'title'   => '查看',
                                                                                    'remark'  => '',
                                                                                    'icon'    => 'fa fa-binoculars',
                                                                                    'sublist' => [],
                                                                                ],
                                                                        ],
                                                                ],
                                                        ],
                                                ],
                                            30 =>
                                                [
                                                    'name'    => 'product/display',
                                                    'title'   => '产品展示',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-align-justify',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_product/index/ids/10',
                                                                    'title'   => '数码产品',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-th',
                                                                    'sublist' =>
                                                                        [
                                                                            0 =>
                                                                                [
                                                                                    'name'    => 'official/official_list_product/index/ids/10/index',
                                                                                    'title'   => '查看',
                                                                                    'remark'  => '',
                                                                                    'icon'    => 'fa fa-th',
                                                                                    'sublist' => [],
                                                                                ],
                                                                        ],
                                                                ],
                                                            1 =>
                                                                [
                                                                    'name'    => 'official/official_list_product/index/ids/11',
                                                                    'title'   => '玻璃制品',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-th',
                                                                    'sublist' =>
                                                                        [
                                                                            0 =>
                                                                                [
                                                                                    'name'    => 'official/official_list_product/index/ids/11/index',
                                                                                    'title'   => '查看',
                                                                                    'remark'  => '',
                                                                                    'icon'    => 'fa fa-th',
                                                                                    'sublist' => [],
                                                                                ],
                                                                        ],
                                                                ],
                                                            2 =>
                                                                [
                                                                    'name'    => 'official/official_list_product/index/ids/12',
                                                                    'title'   => '女士产品',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-th',
                                                                    'sublist' =>
                                                                        [
                                                                            0 =>
                                                                                [
                                                                                    'name'    => 'official/official_list_product/index/ids/12/index',
                                                                                    'title'   => '查看',
                                                                                    'remark'  => '',
                                                                                    'icon'    => 'fa fa-th',
                                                                                    'sublist' => [],
                                                                                ],
                                                                        ],
                                                                ],
                                                            3 =>
                                                                [
                                                                    'name'    => 'official/official_list_product/index/ids/13',
                                                                    'title'   => '其他产品',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-th',
                                                                    'sublist' =>
                                                                        [
                                                                            0 =>
                                                                                [
                                                                                    'name'    => 'official/official_list_product/index/ids/13/index',
                                                                                    'title'   => '查看',
                                                                                    'remark'  => '',
                                                                                    'icon'    => 'fa fa-th',
                                                                                    'sublist' => [],
                                                                                ],
                                                                        ],
                                                                ],
                                                        ],
                                                ],
                                            40 =>
                                                [
                                                    'name'    => 'official/official_list_case_show/index/ids/14',
                                                    'title'   => '客户案例',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-bitbucket',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_case_show/index/ids/14/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-bitbucket',
                                                                    'sublist' => [],
                                                                ],
                                                        ],
                                                ],
                                            50 =>
                                                [
                                                    'name'    => 'official/official_list_download/index/ids/15',
                                                    'title'   => '下载中心',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-shopping-bag',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_download/index/ids/15/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-th',
                                                                    'sublist' => [],
                                                                ],
                                                        ],
                                                ],
                                            60 =>
                                                [
                                                    'name'    => 'official/official_list_table/index/ids/16',
                                                    'title'   => '人才招聘',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-building-o',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_table/index/ids/16/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-building-o',
                                                                    'sublist' => [],
                                                                ],
                                                        ],
                                                ],
                                            70 =>
                                                [
                                                    'name'    => 'official/official_list_online_message/index/ids/17',
                                                    'title'   => '在线留言',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-file-text-o',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_online_message/index/ids/17/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-file-text-o',
                                                                    'sublist' => [],
                                                                ],
                                                        ],
                                                ],
                                            80 =>
                                                [
                                                    'name'    => 'official/official_list_our_clients/index/ids/20',
                                                    'title'   => '我们的客户',
                                                    'remark'  => '',
                                                    'icon'    => 'fa fa-address-book-o',
                                                    'sublist' =>
                                                        [
                                                            0 =>
                                                                [
                                                                    'name'    => 'official/official_list_our_clients/index/ids/20/index',
                                                                    'title'   => '查看',
                                                                    'remark'  => '',
                                                                    'icon'    => 'fa fa-address-book-o',
                                                                    'sublist' => [],
                                                                ],
                                                        ],
                                                ],

                                        ],
                                ],
                        ],
                ],
        ];
        Menu::create($menu);
        return true;
    }

    /**
     * 插件卸载方法
     * @return bool
     */
    public function uninstall()
    {
        Menu::delete('official');
        return true;
    }

    /**
     * 插件启用方法
     * @return bool
     */
    public function enable()
    {
        Menu::enable('official');
        return true;
    }

    /**
     * 插件禁用方法
     * @return bool
     */
    public function disable()
    {
        Menu::disable('official');
        return true;
    }


    //appInit 标签位执行的逻辑
    public function appInit()
    {
        include $this->addonPath . "/controller/common/common.php";
        include $this->addonPath . "/controller/common/api.php";
    }

}